package com.njbw.design_pattern.created.factory.factoryMethod.resourceFactory.impl;

import com.njbw.design_pattern.created.factory.factoryMethod.Resource;
import com.njbw.design_pattern.created.factory.factoryMethod.resourceFactory.IResourceLoader;

/**
 * 默认资源加载器
 *
 * @author 黄侯淳
 * @since JDK 1.8
 */
public class DefaultResourceLoader implements IResourceLoader {

    @Override
    public Resource load(String url) {
        // 中间省略复杂的创建过程
        return new Resource(url);
    }
}
